interface PersonThis {
  name: string;
  age: number;
  sex?: string;
  charactor: Object; // 这里可以考虑接口套接口
}
const arr0: number[] = [1, 2, 3, 4];
const arr1: string[] = ['1', '2', '3', '4'];
const arr2 = [1, '2', {}]; // 没说就是指any类型
const arr3: (number | string)[] = [1, '2']; // 定义多类型
const arr4: PersonThis[] = [
  {
    name: '张三',
    age: 17,
    sex: '男',
    charactor: {}
  }
]
console.log(arr1);
console.log(arr2);
console.log(arr3);
console.log(arr4);